import { CardEditableParamsDefault, CardDataEditableParamsCommonDefault } from "@/views/card/js/data/cardDatas/card-datas-default.js";
import TooltipsData from "@/views/card/js/data/tooltipsData/tooltips-data.js";
const CARD_16 =  {
    group: {  // 功能1 双按钮
      ...CardEditableParamsDefault.Lists,
      label: '卡片式双按钮',
      limit: 2,
      param_params: {
        title_sub: {
          ...CardEditableParamsDefault.InputNormal,
          label: '卡片名称',
          placeholder: '请输入卡片名称',

          param_effect_parent: {
            effect_parent_keys: ['group', 'ARRAY_NUM', 'is_btn'],
            effect_type: ['SHOW_HIDE'],
            effect_parent_val: false,
            effect_clear: {  // 有则 清除
              effect_clear_default_val: '',  // default
            },
          },
        },
        pic: {
          ...CardEditableParamsDefault.ImageNormal,
          label: '卡片图标',
          res_type: 'String',  // Array : fileList, String : value
          placeholder: '请选择图标，png格式',
          limit: 1,
          size: 100,
          accept: '.png',
          tooltips: '请选择图标，png格式，限制 100kb',

          param_effect_parent: {
            effect_parent_keys: ['group', 'ARRAY_NUM', 'is_btn'],
            effect_type: ['SHOW_HIDE'],
            effect_parent_val: false,
            effect_clear: {  // 有则 清除
              effect_clear_default_val: '',  // default
            },
          },
        },
        scheme: {
          // ...CardEditableParamsDefault.InputNormal,
          // label: '跳转链接',
          // placeholder: '请选择跳转链接',

          ...CardEditableParamsDefault.MixedInput,
          label: '跳转链接',
          placeholder: '请填入跳转链接',
          original_type: 'InputNormal',
          original_type_list: [
            {
              value: 'InputNormal',
              label: '链接',
            },
            {
              value: 'DropdownNormal',
              label: '弹层',
            },
          ],
          original_type_prop_list: {
            'DropdownNormal': {
              data_type: 'PANEL'
            },
            'InputNormal': {},
          },
          original_type_config_list: {
            'DropdownNormal': {
              prefix: 'http://iapib.hd.xxx.com/v1/fcardlist/getPanel?pageNum=',
              // suffix: '',
              encode: true,
              parent: {
                prefix: 'sinaweibo://pagealert?request_url=',
                // suffix: '',
                // encode: false,
              },
            },
            'InputNormal': {},
          },

          param_effect_parent: {
            effect_parent_keys: ['group', 'ARRAY_NUM', 'is_btn'],
            effect_type: ['SHOW_HIDE'],
            effect_parent_val: false,
            effect_clear: {  // 有则 清除
              effect_clear_default_val: '',  // default
            },
          },
        },
        is_btn: {
          ...CardEditableParamsDefault.SwitchNormal,
          label: '是否改为添加卡片按钮',
          tooltips: TooltipsData.CARD_16[0],
        },
        buttons: {
          ...CardEditableParamsDefault.Lists,
          label: '卡片按钮',
          limit: 1,
          param_params: {
            name: {
              ...CardEditableParamsDefault.InputNormal,
              label: '按钮名称',
              placeholder: '插入  {#num}  替换数字',
              tooltips: TooltipsData.others[2],
            },
            pic: {
              ...CardEditableParamsDefault.ImageNormal,
              label: '按钮Icon',
              res_type: 'String',  // Array : fileList, String : value
              placeholder: '尺寸严格按照设置的宽高，小于100kb，png格式',
              limit: 1,
              size: 100,
              accept: '.png',
              // suffix: '_default',
              tooltips: TooltipsData.image[5],
            },
            pic_default: {
              ...CardEditableParamsDefault.ImageNormal,
              label: '按钮Icon(同上)',
              res_type: 'String',  // Array : fileList, String : value
              placeholder: '尺寸严格按照设置的宽高，小于100kb，png格式',
              limit: 1,
              size: 100,
              accept: '.png',
              suffix: '_default',
              tooltips: TooltipsData.image[6],
            },
            scheme: {
              ...CardEditableParamsDefault.InputNormal,
              label: '跳转链接',
              placeholder: '请选择跳转链接',
            },
            params: {
              ...CardEditableParamsDefault.Obj,
              label: '按钮配置',
              param_params: {
                action: {
                  ...CardEditableParamsDefault.Action,
                  label: '按钮事件',
                  placeholder: '请选择按钮事件',
                  tooltips: TooltipsData.others[1],
                },
              },
            },
          },

          param_effect_parent: {
            effect_parent_keys: ['group', 'ARRAY_NUM', 'is_btn'],
            effect_type: ['SHOW_HIDE'],
            effect_parent_val: true,
            effect_clear: {  // 有则 清除
              effect_clear_default_val: [],  // default
            },
          },
        },
      },
    },
    ...CardDataEditableParamsCommonDefault,
  };
export default CARD_16;
